﻿using _循环插入数据.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _循环插入数据.Context
{
    public class BaseContext : DbContext
    {
        public BaseContext()
            : base("cs")
        { 
        
        }

        public DbSet<InterimTable> InterimTable { get; set; }
        public DbSet<BaseData_T2Partner> BaseData_T2Partner { get; set; }
        public DbSet<MBG_Region_Province> MBG_Region_Province { get; set; }



        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

    }
}
